package liu.db.uuid;


import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Test;

public class CreateUUID {
	
	@Test
	public void dateTest() throws Exception {
		
		Date date=new Date();
		
		SimpleDateFormat format=new SimpleDateFormat("yyyyMMddHHmmssSSS");
		String xx = format.format(date);
		
		System.out.println(xx);
		
		double random = Math.random();
		
		int a=(int)(random*1000000);
		System.out.println(a);
		String str=xx+a;
		System.out.println(str);
		
	}

}
